import Base from './Base'
import ProductTransactionPK from './ProductTransactionPK'

class ProductTransaction extends Base {
  constructor ({
    id = '',
    unionId = new ProductTransactionPK({}),
    netvalue = '',
    share = '',
    amount = '',
    redemptionFee = '',
    profit = ''
  }) {
    super({id})

    this.unionId = new ProductTransactionPK(unionId)
    this.netvalue = netvalue
    this.share = share
    this.amount = amount
    this.redemptionFee = redemptionFee
    this.profit = profit
  }
}
// 静态属性
ProductTransaction.$name = '/product/trans'
export default ProductTransaction
